import 'package:flutter/material.dart';

class MyApp6 extends StatelessWidget {
  const MyApp6({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Text组件'),
        centerTitle: true,
        backgroundColor: Colors.amber,
      ),
      body: const Text(
        '《春宵》 苏轼 \n 春宵一刻值千金，花有清香月有阴。 歌管楼台声细细，秋千院落夜沉沉。',
        style: TextStyle(
          color: Colors.red,
          fontSize: 20,
          // fontFamily: 'KAITI',
          // 倾斜
          fontStyle: FontStyle.italic,
        ),
        textAlign: TextAlign.center,
        maxLines: 2,
        overflow: TextOverflow.ellipsis,
      ),
    );
  }
}
